    	<div class="position">当前位置：
             <?php $this->widget('zii.widgets.CBreadcrumbs', array(
                'links'=>array(
					t('Member','web')=>array('/member/index/index'),
					'帐户管理'=>array('/member/info/info'),
					'我的优惠券',
				),
                'separator'=>' > ',
                'homeLink'=>false,
                'tagName'=>'span',
            )); ?>
        </div>
        <div class="remind_box mt10"><span class="mem_ico ico_tip"></span>友情提醒：当前可使用优惠券 <strong class="c_f60"><?php echo $amounts['available']['amount'];?></strong> 张，已使用 <strong class="c_f60"><?php echo $amounts['used']['amount'];?></strong> 张，已过期 <strong class="c_f60"><?php echo $amounts['expired']['amount'];?></strong> 张</div>
        <div class="hr_15"></div>
        <!--我的优惠券 start-->
         <div class="coupon_box pub_tab" id="userCoupon">
         	<div class="tab_hd2">
                <ul class="c_f">
                    <li class="select"><a href="<?php echo Yii::app()->createUrl('member/info/mycoupons');?>">我的优惠券<b class="mem_bgx left"></b><b class="mem_bgx right"></b></a></li>
                    <li><a href="<?php echo Yii::app()->createUrl('member/info/usedcoupons');?>">已使用的优惠券<b class="mem_bgx left"></b><b class="mem_bgx right"></b></a></li>
                    <li><a href="<?php echo Yii::app()->createUrl('member/info/couponscenter');?>">优惠券中心<b class="mem_bgx left"></b><b class="mem_bgx right"></b></a></li>
                </ul>
            </div>
            <!--我的优惠券  start-->
            <div class="tab_cont2">
            <form action="/member/info/deletememcoupon" method="post" id="deleteForm">
                <table class="list_table list_table2" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <th width="18%" class="tl a">优惠券名称</th>
                        <!-- <th width="15%">适用店铺</th> -->
                        <th width="12%">价值(元)</th>
                        <th width="20%">使用条件</th>
                        <th width="13%">有效期至</th>
                        <th width="12%">
						<?php
                            echo CHtml::dropDownList('type',Yii::app()->request->getParam('type',1),array(1=>'可使用',2=>'已过期',3=>'未到可使用时间'),array('class'=>'mr10','onchange'=>'typeLimit(this.value);'));
                        ?>
                        </th>
                        <th width="10%">操作</th>                                             
                    </tr>
                 </table>
					<?php $list = $this->beginWidget('zii.widgets.CListView', array(
                        'dataProvider'=>$model->listSearch(),
                        'itemView'=>'_myticketview',
						'itemsTagName'=>'table',
						'itemsOptions'=>array('class'=>'list_table list_table2','width'=>'100%','cellpadding'=>0,'cellspacing'=>0),
                        'template'=>'',
                    )); ?>
                    <?php $list->renderItems();?>
                 <table class="list_table list_table2" cellpadding="0" cellspacing="0" width="100%">   
                    <tr class="foot">
                        <td colspan="7">
                            <div class="pro_filter c_f">
                                <div class="filter f_l">
                                <span class="mr10"><input id="allcheckbox1" onchange="checkAll('select-on-check','allcheckbox1');" class="chk select-on-check" type="checkbox" name="">全选</span>
                                <button class="mem_btn mem_btn17 mr5" onclick="$('#deleteForm').submit();" title="">删除选中</button>
                                </div>
                                </form>
                                <div class="list_page f_r">
                                    <?php $list->renderPager();?>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <?php $this->endWidget();?>
                </table>
         	</div>
            <!--我的优惠券  end-->
         </div>
    	<!--我的优惠券 end-->
        <script>
			function typeLimit(value){
				window.location.href='/member/info/mycoupons/type/'+value;
			}
		</script>